package com.dkm.ec.relation.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.relation.domain.RelationSession;
import com.dkm.ec.relation.repository.RelationSessionRepository;
import com.dkm.ec.relation.persistence.dao.RelationSessionQueryDao;
import com.dkm.ec.relation.persistence.entity.RelationSessionPo;

/**
 * 对象功能:t_relation_session Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-07-22 16:33:03
 */
@Repository
public class RelationSessionRepositoryImpl extends AbstractRepository<String, RelationSessionPo,RelationSession> implements RelationSessionRepository{
	  
	@Resource
	private  RelationSessionQueryDao relationSessionQueryDao;

	public RelationSession newInstance() {
		RelationSessionPo po = new RelationSessionPo();
		RelationSession relationSession = SpringHelper.getBean(RelationSession.class);
		relationSession.setData(po);
		return relationSession;
	}

	public RelationSession newInstance(RelationSessionPo po) {
		RelationSession relationSession = SpringHelper.getBean(RelationSession.class);
		relationSession.setData(po);
		return relationSession;
	} 
	
	@Override
	protected IQueryDao<String, RelationSessionPo> getQueryDao() {
		return relationSessionQueryDao;
	}
	
}
